package com.xwj.dto;

import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

public class RepairInfoDto implements Serializable {
    private static final long serialVersionUID = -1749289110598245308L;

    private String userId;

    private String phone;

    private String address;

    private String title;

    private String reason;

    private Integer status;

    public RepairInfoDto() {
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        if (StringUtils.isNotBlank(userId))
            builder.append(userId + "_");
        if (StringUtils.isNotBlank(phone))
            builder.append(phone + "_");
        if (StringUtils.isNotBlank(address))
            builder.append(address + "_");
        if (StringUtils.isNotBlank(title))
            builder.append(title + "_");
        if (StringUtils.isNotBlank(reason))
            builder.append(reason + "_");
        if (status != null)
            builder.append(status);
        return builder.toString();
    }
}
